<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-model</title>
</head>
<body>


    <div id="app">
        <input v-model="name"/>
        <h3>
            您输入的用户名为:{{name}}
        </h3>
    </div>

    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        let app = new Vue({
            el:"#app",
            data:{
                name:"刘德华"
            }
        });
    </script>
</body>
</html>